//Created by Joanna Tan
Ext.define("MajorProjectSenchaTouch.view.SearchModule.SecondFilter",{
    extend: 'Ext.Panel',
    xtype: 'secondfilter',
    
    config:{
        items: [
        {
            xtype: 'panel',
            ui: 'neutral',
            items: [{
                xtype: 'panel',
                id: 'aChoice2Wrapper',
                cls: 'logicWrapper',
                items:
                [{
                    xtype: 'selectfield',
                    id:'aChoice2',
                    cls: 'logicFilter',
                    ui: 'light',
                    usePicker: true,
                    options: [
                    {
                        text: 'AND',
                        value: 'AND'
                    },
                    {
                        text: 'OR',
                        value: 'OR'
                    },
                    {
                        text: 'NOT',
                        value: 'NOT'
                    }]
                }]
            },
            {
                xtype: 'panel',
                id: 'advsearchPan2Wrapper',
                cls: 'filterWrapper',
                items: [
                {
                    xtype: 'searchfield',
                    name : 'search',
                    id: 'aSearchField2',
                    cls: 'advaSearchFieldSty',
                    placeHolder: 'Search'
                },
                {
                    xtype: 'selectfield',
                    name: 'type',
                    ui: 'light',
                    usePicker: true,
                    id: 'aSelectField2',
                    cls: 'advaSelectFieldSty',
                    options: [{
                        text: 'By Keyword Anywhere',
                        value: 'Key'
                    },
                    {
                        text: 'By Author',
                        value: 'Author'
                    },
                    {
                        text: 'By Title',
                        value: 'Title'
                    },
                    {
                        text: 'By Subject',
                        value: 'Subject'
                    }]
                },
                {
                    xtype: 'panel',
                    items: [{
                        xtype: 'togglefield',
                        label: 'Search as a Phrase',
                        id: 'aToggle2',
                        labelWidth: '10.0em',
                        labelWrap: true
                    }]
                }]
            }]
        }]
    }
});